package com.cy.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @FeignClient 描述接口,用于告诉spring要为此接口创建实现类
 */
@FeignClient("sca-provider")  //服务名
public interface ConsumerHttpAPI {
    @GetMapping("/provider/echo/{msg}")
    String doEcho(@PathVariable String msg);
}
